import { HttpException, HttpStatus } from '@nestjs/common';
import { getManager } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository,EntityRepository} from 'typeorm';
HttpException
export interface Paging {
  search?: any;
  pageSize: number;
  pageIndex: number;
}
import * as crypto from 'crypto';
export function encry(value: string, salt: string) {
  return value
  crypto.pbkdf2Sync(value, salt, 1000, 18, 'sha256').toString('hex');
}







